package com.gitee.somenvm.ninerpgitem.compat.attribute

import com.gitee.somenvm.ninerpgitem.util.error
import org.bukkit.command.CommandSender
import org.bukkit.entity.LivingEntity
import org.bukkit.inventory.ItemStack
import taboolib.common.platform.function.console
import java.util.*

/**
 * BY NineRpgItem
 * com.gitee.somenvm.ninerpgitem.compat.attribute
 *
 * @author  SomeNvM
 * @date  2022/12/28 13:57
 */
object AttributeNullBridge : AttributeBridge {
    override fun update(entity: LivingEntity) {
    }

    override fun removeAttributes(uuid: UUID, source: String) {
    }

    override fun addAttributes(uuid: UUID, reads: List<String>) {
        console().cast<CommandSender>().error("Please install an Attribute plugin.")
    }

    override fun update(uuid: UUID) {
    }

    override fun getAttributeValue(uuid: UUID, keyword: String): Number {
        return 0.0
    }

    override fun addAttributes(source: String, uuid: UUID, reads: List<String>) {
        console().cast<CommandSender>().error("Please install an Attribute plugin.")
    }

    override fun getAttributeValue(itemStack: ItemStack, keyword: String): Number {
        return 0.0
    }

    override fun getAttributeValue(list: MutableList<String>, keyword: String): Number {
        return 0.0
    }
}